package com.example.yk_lx.addGroup;

import androidx.lifecycle.MutableLiveData;

import com.example.yk_lx.baseMVVM.BaseViewModel;
import com.hyphenate.chat.EMGroupOptions;

public class AddFroupViewModel extends BaseViewModel<AddGroupRepo> {
    @Override
    protected AddGroupRepo createRepo() {
        return new AddGroupRepo();
    }
    public MutableLiveData<String> success = new MutableLiveData<>();
    public MutableLiveData<String> fail = new MutableLiveData<>();

    public void addGroup(String groupname, String desc, String[] numbers,
                         String reason, EMGroupOptions options){
        repo.addGroup(groupname,desc,numbers,reason,options,success,fail);
    }
}
